<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>商品展示</title>
<jsp:include page="/base.jsp"></jsp:include>
<link href="css/base.css" rel="stylesheet">
</head>
<body>
		<div>
		<form action="ProductSearchServlet" id="searchForm" style="width: 800px;">
	
		<input placeholder="商品名称"  name="prodName"/>
		<input placeholder="市场价格"  type="number" name="marketPrice"/>
		<input placeholder="商品数量"  type="number" name="prodQuantity"/>
		<input placeholder="是否下架"  type="number" name="isSale"/>
		<input type="submit" value="查询">
		<input type="reset" value="重置">
	</form>
	</div>
	<a href="B2Choutai/product_add.jsp" style="float: right">新增</a><br>
	<table>
		<tr>
			<th>目录Id</th>
			<th>商品名称</th>
			<th>市场售价</th>
			<th>会员价格</th>
			<th>商品数量</th>
			<th>是否下架</th>
			<th>商品简述</th>
			<th>创建人</th>
			<th>创建时间</th>
			<th>更新人</th>
			<th>更新时间</th>
			<th>是否有效</th>
			<th>操作</th>
		</tr>
		<c:forEach items="${product}" var="prod">
		<tr>
			
			<td>${prod.cataId}</td>
			<td>${prod.prodName}</td>
			<td>${prod.marketPrice}</td>
			<td>${prod.vipPrice}</td>
			<td>${prod.prodQuantity}</td>
			<td>${prod.isSale}</td>
			<td>${prod.prodDescription}</td>
			<td>${prod.createBy}</td>
			<td>${prod.createDate}</td>
			<td>${prod.updateBy}</td>
			<td>${prod.updateDate}</td>
			<td>${prod.activeFlag}</td>
			<td>
			<a href="ProductGoUpdateServlet?rowId=${user.rowId}">修改</a>
			<a href="javascript:dodelete(${prod.rowId});">删除</a>
			</td>
		</tr>
		</c:forEach>
	</table>
</body>
</html>